home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / pvert.arc / ASSIGN.C < prev    next >
C/C++ Source or Header  |  1992-01-15  |  131b  |  11 lines

  1. #include <stdlib.h>
  2. #include <string.h>
  3.  
  4.  
  5.  
  6. char * assign (char *s,char *p) {
  7.  
  8.     if(s) free(s);
  9.     return strdup(p);
  10. }
  11.